package top.zywork.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.zywork.dao.UserGoodsCollectionDAO;
import top.zywork.dos.UserGoodsCollectionDO;
import top.zywork.dto.UserGoodsCollectionDTO;
import top.zywork.service.AbstractBaseService;
import top.zywork.service.UserGoodsCollectionService;

import javax.annotation.PostConstruct;

/**
 * UserGoodsCollectionServiceImpl服务接口实现类<br/>
 *
 * 创建于2019-07-24<br/>
 *
 * @author http://zywork.top 王振宇
 * @version 1.0
 */
@Service(value = "userGoodsCollectionService")
public class UserGoodsCollectionServiceImpl extends AbstractBaseService implements UserGoodsCollectionService {

    private UserGoodsCollectionDAO userGoodsCollectionDAO;

    @Autowired
    public void setUserGoodsCollectionDAO(UserGoodsCollectionDAO userGoodsCollectionDAO) {
        super.setBaseDAO(userGoodsCollectionDAO);
        this.userGoodsCollectionDAO = userGoodsCollectionDAO;
    }

    @PostConstruct
    public void init() {
        super.init(UserGoodsCollectionDO.class, UserGoodsCollectionDTO.class);
    }
}
